class Solution(object):
    def minOperations(self, n):
        return n * (n // 2) - sum(range(1, n, 2))